package com.fwj.authorization.staff.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fwj.authorization.staff.entity.SysPermissionRole;

import java.util.List;

/**
 * 权限角色
 *
 * @author 樊温军
 * @date 2025/3/18 上午10:32
 */
public interface SysPermissionRoleService extends IService<SysPermissionRole> {

    /**
     * 权限角色码—分页
     *
     * @param page              分页对象
     * @param sysPermissionRole 查询条件
     * @return IPage<SysPermissionRole>
     */
    IPage<SysPermissionRole> getPage(Page<SysPermissionRole> page, SysPermissionRole sysPermissionRole);

    /**
     * 权限角色码—保存
     *
     * @param sysPermissionRoles 权限角色码列表
     * @return Boolean
     */
    Boolean savePermissionRole(List<SysPermissionRole> sysPermissionRoles);
}
